package huhx.linux.com.kotlinlearn.base

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View

/**
 * Created by huhx on 2018-03-17 下午 10:59.
 */
abstract class BaseActivity : AppCompatActivity(), View.OnClickListener, BaseViewInterface {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        onBeforeSetLayout()
        initBundle(savedInstanceState)
        initView()
        initData()

    }

    protected fun onBeforeSetLayout() {

    }

    protected fun initBundle(bundle: Bundle?) {}
}